package cn.hinglo.website.controller;

import cn.hinglo.baseservice.annotation.IgnoreToken;
import cn.hinglo.baseservice.base.BaseController;
import cn.hinglo.common.entity.Result;
import cn.hinglo.website.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @createTime: 2018/9/26 17:49
 * @author: HingLo
 * @description: 菜单管理
 */
@RestController
@RequestMapping("/menu")
public class MenuController extends BaseController {

    @Autowired
    private MenuService menuService;

    /**
     * 菜单列表
     */
    @IgnoreToken
    @GetMapping("list")
    public Result list() {
        return success(menuService.listService());
    }
}
